package kr.saeildamil.androidstudty.ch17;
import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TabHost;

public class TabTest extends TabActivity {
	TabHost mTab;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		TabHost tabHost=getTabHost();
		
		
		Intent intent1=new Intent(this, ActivityCycle.class);
		intent1.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
		tabHost.addTab(tabHost.newTabSpec("tab1")
				.setIndicator("SaveCurve")
				.setContent(intent1));
		
		Intent intent2=new Intent(this, SaveState.class);
		intent2.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
		tabHost.addTab(tabHost.newTabSpec("tab2")
				.setIndicator("SaveCurve")
				.setContent(intent2));
		
		
		Intent intent3=new Intent(this, SaveCurve.class);
		intent3.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
		tabHost.addTab(tabHost.newTabSpec("tab3")
				.setIndicator("SaveCurve")
				.setContent(intent3));
	}
}
